<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="./css/tab.css">
</head>
<style>
  body{
    font-family: "思源黑体";
  }
</style>
<body>
  <div class="tab-wrap">
    <div class="tab clearfix">
      <div class="tab-item cur">
        <a href="#">选项卡1</a>
      </div>
      <div class="tab-item">
        <a href="#">选项卡2</a>
      </div>
      <div class="tab-item">
        <a href="#">选项卡3</a>
      </div>
    </div>
    <div class="page">
      <div class="page-item active">1</div>
      <div class="page-item">2</div>
      <div class="page-item">3</div>
    </div>
  </div>
</body>
<script src="./js/tab.js"></script>
<script>
  var tabs = new Tab({
    tabItem: "tab-item",
    pageItem: "page-item",
    cur: "cur",
    active: "active",
  })
</script>
</html>